package com.wei.shopping.service.impl;

import com.wei.shopping.dao.LoginMapper;
import com.wei.shopping.pojo.Login;
import com.wei.shopping.service.LoginService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class LoginServiceImpl implements LoginService {
    @Resource
    public LoginMapper loginMapper;
    /**
     * 查找登陆Login
     * @param login
     * @return
     */
    public Login findByAll(Login login){
        Login l = loginMapper.findByAll(login);
        return l;
    }
}
